package com.ljs.myspringboot.repository;

import com.ljs.myspringboot.entity.Student_boot;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface StudentMapper {
    //添加学生的方法
    public boolean addStudent(Student_boot student);

    public int deleteStudent(int id);

    public int updateStudent(Student_boot student);

    /**
     * 查询全部学生
     *
     * @return
     */
    public List<Student_boot> selAllStudent(@Param("start") int page, @Param("limit") int limit);

    /**
     * 根据name来查询学生
     *
     * @return
     */
    public Student_boot selStudent(String name);

    public Student_boot login(String name, String password);
}
